package edu.bbu.commonproject.desktop.gui.view.swing.setup;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Image;

import edu.bbu.commonproject.desktop.gui.view.swing.utils.Design;
import edu.bbu.commonproject.desktop.gui.view.swing.utils.TexturedPanel;

/**
 * The center setup panel class.
 */
public class CenterSetupPanel extends TexturedPanel
{
	/** The base texture image. */
	private Image baseTexture;
	
	/** The center setup collection panel. */
	private CenterSetupCollectionPanel centerSetupCollectionPanel;
	
	/**
	 * The constructor.
	 */
	public CenterSetupPanel()
	{
		baseTexture = Design.COMPONENT_BASETEXTURE;
		this.setPreferredSize(new Dimension(1050, 550));
		this.setTexture(baseTexture);
		this.setLayout(new GridBagLayout());
		
		setComponents();
	}
	
	/**
	 * Sets up the components.
	 */
	private void setComponents()
	{
		centerSetupCollectionPanel = new CenterSetupCollectionPanel();
		this.add(centerSetupCollectionPanel, new GridBagConstraints());
	}
	
	/**
	 * Gets the center setup collection panel.
	 * @return the center setup collection panel.
	 */
	public CenterSetupCollectionPanel getCenterSetupCollectionPanel()
	{
		return centerSetupCollectionPanel;
	}
}
